<template>
    <fieldset>
       
        <legend>内容分发</legend>
        <modal :visible="visible" @on-no="no" @on-yes="yes();fetch()">
            <template v-slot:title>
                <h1>分发弹窗</h1>
            </template>
            <template v-slot:body>
                <h3>分发弹窗主体</h3>
            </template>
        </modal>
        <button @click="showModal">点击显示模态框</button>
    </fieldset>
</template>
<script>
    import modalMix from '../../../mixins/modal'
  
    export default{
       mixins:[modalMix],
      
        methods:{
            fetch(){
               alert('提交成功') 
            }
        }
    }
</script>